import React from 'react'
import Child2 from '../components/Child2'
import NumContext from "../context";

export default function UseContext() {
    return (
        <div>跨层级的组件通信
            <hr></hr>
            <NumContext.Provider value={99}>    
                 <Child2></Child2>
            </NumContext.Provider>
       
        </div>
    )
}
